from .code import Code
from .errs import Errs
from .data_result import DataResult
from .role import Role
from .pwt import PWT

# 初始化错误码信息
Errs.put(Code.SUCCESS, "成功")
Errs.put(Code.ERROR, "操作有误")
Errs.put(Code.LOGIN_OUT, "登录失效")
Errs.put(Code.LOGIN_ERROR, "用户名或密码不正确")
Errs.put(Code.ADD_STUDENT_ERROR, "新增学生失败")
Errs.put(Code.UPDATE_STUDENT_ERROR, "修改学生失败")
Errs.put(Code.DELETE_STUDENT_ERROR, "删除学生失败")
Errs.put(Code.PERMISSION_DENY, "权限不足")

__all__ = ["Code", "Errs", "DataResult", "Role", "PWT"]
